package com.example.practice2023.mapper;

import com.example.practice2023.pojo.Rotation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RotationMapper {

    void addRotation(Rotation rotation);

    void deleteRotation(@Param("id") int id);

    void updateRotation(Rotation rotation);

    List<Rotation> getRotations();

    Rotation getRotationById(@Param("id") int id);

    void deleteMultipleRotations(@Param("ids") List<Integer> ids);
}
